<div class="container body">
    <!-- Content here -->
  
  <div class="row">
  <ul class="nav">
      <a class="navbar-brand" [routerLink]="['index']" >
          <img src="/assets/img/lg.jpg" width="30" height="30" alt="" class="img">
        </a>

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">文章</a>
          <div class="dropdown-menu">
            <a class="dropdown-item" [routerLink]="['newslist']">文章界面</a>
            <a class="dropdown-item" [routerLink]="['editnews','add']">文章编辑</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" [routerLink]="['newslistforuser']">文章列表</a>
          </div>
      </li>

      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">资讯</a>
        <div class="dropdown-menu">
          <a class="dropdown-item" [routerLink]="['uploadpage']">资讯列表</a>
          <a class="dropdown-item" [routerLink]="['editsinglepage']">资讯编辑</a>
          <a class="dropdown-item" >单页模块预览</a>
          </div>
      </li>

      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" data-toggle="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">专题</a>
        <div class="dropdown-menu">
          <a class="dropdown-item" [routerLink]="['showcarousel']">专题轮播</a>
          <a class="dropdown-item" [routerLink]="['uploadfile']">文件上传</a>
          </div>
      </li>

        
  
    </ul>
  </div>
  
  
    <router-outlet></router-outlet>
  
  
  
    <footer class="container">
        <p class="float-right"><a href="#">Back to top</a></p>
        <p>&copy; 2017-2018 Company, Inc. &middot; <a href="#">Privacy</a> &middot; <a href="#">Terms</a></p>
      </footer>
  
  </div>